package com.time.timespace.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "类型表")
@TableName("ts_category")
public class Category {

    @Schema(description = "表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "类型")
    private String value;

    @Schema(description = "类型名称")
    private String label;

    @Schema(description = "用户ID")
    private Long userId;
}
